Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add mix task to generate sql dumps of tenant templates #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Dania02525
Copy link
Owner

Addresses issue #32

Needing work:

  • make the dump more generic- when run can it be appended with set_search_path or USE database_name
  • I don't think this will work async, since it uses searchpath

run_with_cmd("mysqldump", config, ["--no-data",
"--routines",
"--protocol=tcp",
"--databases", build_prefix("template")])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could get away with using ~w() here.

["--user", opts[:username]|args]
true ->
args
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like these should be thrown in private methods. It was a bit hard for me to reason about the purpose of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants